package com.mh.study.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author meng.han
 * @since 2022-03-17
 */
@FeignClient(value = "service-resume", fallback = ResumeFallback.class, path = "/resume")
public interface ResumeFeignClient {

    /**
     * 跟controller的每个接口方法写法一致,这是对SpringMVC的支持
     * 如参数绑定，也可以使用@PathVariable、@RequestParam、@RequestHeader
     */
    @GetMapping("/get-port-2")
    Integer getPort2();

}
